//using Wizard.Interfaces;

namespace Wizard.Engine
{
    public class Globals
    {
        private static IWizardConsole mWizardConsole = new DefaultConsole();

        public static void SetConsole(IWizardConsole newIWizardConsole)
        {
            if (newIWizardConsole == null) newIWizardConsole = new DefaultConsole();
            mWizardConsole = newIWizardConsole;
        }

        public static void Write(string s)
        {
            mWizardConsole.Write(s);
        }

        public static void WriteLine(string s)
        {
            mWizardConsole.Write(s + "\r\n");
        }

        public static void WriteLine()
        {
            mWizardConsole.Write("\r\n");
        }
    }
}